<?php
class Form_Search extends Zend_Form{
	public function init(){
		$this->setMethod('post');
		$search = $this->createElement("text","search",array(
                                                                        "size"=>30,
                                                                        "label"=>"Tìm kiếm:"));
                $this->addElement($search);
		$search->setDecorators(array(
			'ViewHelper',
			'Description',
			'Errors',
			array(array('data'=>'HtmlTag'),array('tag'=>'td')),
			array('Label',array('tag'=>'td')),
			//array(array('row'=>'HtmlTag'),array('tag'=>'tr'))
			array(array('row'=>'HtmlTag'),array('tag'=>'tr','openOnly'=>true))
		));
		$submit = $this->CreateElement('submit','submit')->setLabel('Tìm Kiếm');
		$submit->setDecorators(array(
			'ViewHelper',
			'Description',
			'Errors',
			array(array('data'=>'HtmlTag'),array('tag'=>'td','cosplan'=>'2','align'=>'center')),
			//array(array('row'=>'HtmlTag'),array('tag'=>'tr'))
			array(array('row'=>'HtmlTag'),array('tag'=>'tr','closeOnly'=>true))
		));
		$this->addElements(array(
			$search,
			$submit
		));
	}
}
?>